package com.ipartek.formacion.net;

import java.util.ArrayList;

import com.ipartek.formacion.beans.Persona;

public class RecuperaPersonas {

	public static void main(String[] args) {
		try {
			ParseURL personas = new ParseURL("http://www.ibaworldtour.com",
					"data/ranking2.txt");
			ArrayList<Persona> lista = new ArrayList<Persona>();
			lista = personas.obtenerListaPersonas();
			if (lista != null) {
				System.out.println("=================");
				System.out.println("LISTA DE PERSONAS");
				System.out.println("=================");
				for (int i = 0; i < lista.size() - 1; i++) {
					System.out.println(lista.get(i).toString());
				}
			}

		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
